
import { FETCH_SUCCESS } from "../actions/actionType"
const list = (state = [], action) => {
  switch (action.type) {
    case FETCH_SUCCESS:
      state = action.data //请求到的数据赋值给state
      return [...state]
      break;
    default:
      return state
  }

}
export default list